namespace XRM.Security.DataAccess.Context
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class AddUserRegisterColumn2 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.InfoSystemFile", "FileData", c => c.Binary());

            AddColumn("dbo.UserRegister", "IsADUser", c => c.Boolean(nullable: false, defaultValue: false));
            AddColumn("dbo.UserRegister", "IsAdded", c => c.Boolean(nullable: false, defaultValue: true));
            AddColumn("dbo.UserRegister", "Account", c => c.String(maxLength: 100));
        }
        
        public override void Down()
        {
            DropColumn("dbo.UserRegister", "Account");
            DropColumn("dbo.UserRegister", "IsAdded");
            DropColumn("dbo.UserRegister", "IsADUser");
            DropColumn("dbo.InfoSystemFile", "FileData");
        }
    }
}
